import javax.swing.*;
import java.awt.*;

/**
 * User: James Barker
 * Date: 1/08/11
 */

public class FloorUI extends JPanel {

    int currentFloor;
    JButton callLift;

    public FloorUI(int floorNumber) {
        this.currentFloor = floorNumber;
        this.setLayout(new GridLayout(3, 1));
        callLift = new JButton("call");
        this.add(new JLabel(Integer.toString(currentFloor)));
        this.add(callLift);
    }

    public int getCurrentFloor() {
        return currentFloor;
    }

    public void setCurrentFloor(int currentFloor) {
        this.currentFloor = currentFloor;
    }
}
